import java.util.Scanner;
public class Yiti {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
String str = cin.nextLine();
StringBuffer sb = new StringBuffer(str);  //创建对象
System.out.print(sb.reverse().toString());   //利用reverse()对输入的字符串进行逆序输出
}
}